//
//  UpDataImageView.m
//  GLGW_Shoping
//
//  Created by yang on 2018/12/6.
//  Copyright © 2018年 yang. All rights reserved.
//

#import "UpDataImageView.h"

@implementation UpDataImageView{
    GLGWLabel * miaoShuLabel;
}

-(id)initWithFrame:(CGRect)aFrame inSuperView:(UIView *)aSuperView{
    if (self = [super initWithFrame:aFrame inSuperView:aSuperView]) {
        self.placeholderView = [[GLGWView alloc] initWithInSuperView:self];
        [self.placeholderView mas_makeConstraints:^(MASConstraintMaker *make) {
            make.center.equalTo(self);
        }];
        //
        GLGWImageView * topImageView = [[GLGWImageView alloc] initWithImageName:@"ff" inSuperView:self.placeholderView];
        topImageView.backgroundColor = kRandomColor;
        [topImageView mas_makeConstraints:^(MASConstraintMaker *make) {
            make.centerX.equalTo(self.placeholderView);
            make.top.equalTo(self.placeholderView);
            make.width.equalTo(@(kWidthProportion_In_iPhoneTriploid(24)));
            make.height.equalTo(@(kHeightProportion_In_iPhoneTriploid(24)));
        }];
        //
        miaoShuLabel = [[GLGWLabel alloc] initWithFont:SYSTEMFONT(12) theColor:[UIColor colorWithHexString:@"#999999"] inSuperView:self.placeholderView];
        miaoShuLabel.text = @"对公开户许可证";
        [miaoShuLabel mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.bottom.right.equalTo(self.placeholderView);
            make.top.equalTo(topImageView.mas_bottom).offset(kHeightProportion_In_iPhoneTriploid(14));
            make.height.equalTo(@(kHeightProportion_In_iPhoneTriploid(17)));
        }];
    }
    return self;
}

-(void)setPlaceStr:(NSString *)placeStr{
    _placeStr = placeStr;
    miaoShuLabel.text = _placeStr;
}

@end
